package com.myclass.dynamicdatasource.mapper.typeone;

import com.myclass.dynamicdatasource.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Desc:
 *
 * @author wujw
 * @email jiwenwu@outlook.com
 * @date 2018-12-12
 */
@Mapper
public interface UserMapper {
    @Select("select * from demo")
    List<User> getAll();
    @Transactional(transactionManager = "typeOneTx")
    Integer insert(User user);
}
